package com.zym.field_method10;

public class EmployeeTest {

    public static void main(String[] args) {

        Employee employee = new Employee();
        employee.setId(1);
        employee.setName("张三丰");

        //为什么 恢复了默认值？
//        System.out.println(employee.getId());
//        System.out.println(employee.getName());
        System.out.println(employee.toString());


        Employee employee2 = new Employee(2, "哈桑", 34);

        //写一个 快速打印对象字符串的方法
//        System.out.println(employee2.getId());
//        System.out.println(employee2.getName());

        System.out.println(employee2.toString());


    }
}
